package com.yonyou.distribute.controller;

import com.yonyou.distribute.service.ZkService;
import com.yonyou.distribute.service.ZkService_2;
import com.yonyou.distribute.service.ZkService_3;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class ZKController {

    @Resource
    private ZkService zkService;

    @Resource
    private ZkService_2 zkService_2;

    @Resource
    private ZkService_3 zkService_3;


    @GetMapping("/zk/stock/deduct")
    public String deduct(){
        this.zkService.deduct();
        return "hello zk stock deduct";
    }

    @GetMapping("/zk2/stock/deduct")
    public String deduct2(){
        this.zkService_2.deduct();
        return "hello zk2 stock deduct";
    }

    @GetMapping("/zk3/stock/deduct")
    public String deduct3(){
        this.zkService_3.deduct();
        return "hello zk2 stock deduct";
    }


}
